home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Puzzle / brik.swf / scripts / DefineButton2_54 / BUTTONCONDACTION on(release).as
Encoding:
Text File  |  2005-10-06  |  358 b   |  19 lines

  1. on(release){
  2.    if(pause == 1)
  3.    {
  4.       clearInterval(gameClock);
  5.       hitsomething = 1;
  6.       pause = 0;
  7.       this.attachMovie("pauseClip","pc",++d);
  8.       pc._x = 230;
  9.       pc._y = 330;
  10.    }
  11.    else
  12.    {
  13.       gameClock = setInterval(this,"moveDown",speed);
  14.       hitsomething = 0;
  15.       pause = 1;
  16.       removeMovieClip(pc);
  17.    }
  18. }
  19.